package com.bicon.base.data;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.bicon.base.data.framework.web.controller.BaseController;
import com.bicon.base.data.pojo.quartz.job.Job;
import com.bicon.base.data.rabbitmq.config.RabbitmqMessageSender;


@Controller
public class TestController extends BaseController
{
	@Autowired
	private RabbitmqMessageSender rabbitmqMessageSender;

	
    @GetMapping("/send/message")
    @ResponseBody
    public String sendJobMessage() {
    	Job job = new Job();
    	job.setJobGroup("test");
    	rabbitmqMessageSender.quartzJobUpdateMessage(job);
    	return "success";
    }
}
